<%@page import="java.util.TreeMap"%>
<%@page import="entities.MetaSeo"%>
<%@page import="systems.AdsSystem"%>
<%@page import="entities.KeywordRanking"%>
<%@page import="helpers.UrlHelper"%>
<%@page import="java.util.List"%>
<%@page import="com.google.gson.Gson"%>
<%@page import="java.util.Map"%>
<%@page import="helpers.StringHelper"%>
<%@page import="helpers.DateHelper"%>
<%@page import="helpers.NumberHelper"%>
<%@page import="entities.IpAddress"%>
<%@page import="entities.GoogleAnalytic"%>
<%@page import="entities.GoogleAdsense"%>
<%@page import="entities.Domain"%>
<%
request.setCharacterEncoding("UTF-8");
Domain domain = (Domain) request.getAttribute("domain");
GoogleAdsense googleAdsense = (GoogleAdsense) request.getAttribute("googleAdsense");
GoogleAnalytic googleAnalytic = (GoogleAnalytic) request.getAttribute("googleAnalytic");
IpAddress ipAddress = (IpAddress) request.getAttribute("ipAddress");
KeywordRanking keyword = (KeywordRanking) request.getAttribute("keyword");
MetaSeo metaseo = (MetaSeo) request.getAttribute("metaseo");

//Set content for Seo
Map<String, String> replates = new TreeMap<String, String>();
replates.put("__SERVER_NAME__", UrlHelper.getDomainServer(request));
replates.put("__SERVER_URL__", UrlHelper.getServerUrl(request));
replates.put("__INFO_NAME__", domain.getDomain());
replates.put("__INFO_TITLE__", domain.getTitle());
replates.put("__INFO_ALEXA_RANK__", NumberHelper.numberFormat(domain.getAlexaRank()));
replates.put("__INFO_GOOGLE_RANK__", NumberHelper.numberFormat(domain.getGooglePageRank()));
replates.put("__INFO_PAGE_SIZE__", domain.getPageSize());
replates.put("__INFO_IP_ADDRESS__", domain.getIpAddress());
replates.put("__INFO_AGE__", domain.getAge());

String title = StringHelper.replateContent(metaseo.getTitle(), replates);
String description = StringHelper.replateContent(metaseo.getDescription(), replates);
String keywords = StringHelper.replateContent(metaseo.getKeywords(), replates);
String url = StringHelper.replateContent(metaseo.getOgurl(), replates);
String ogimage = StringHelper.replateContent(metaseo.getOgimage(), replates);
%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<jsp:include page="/templates/showsite/layouts/header.jsp">
	<jsp:param name="title" value="<%=title %>" />
    <jsp:param name="description" value="<%=description %>" />
    <jsp:param name="keywords" value="<%=keywords %>" />
    <jsp:param name="ogtitle" value="<%=title %>" />
    <jsp:param name="ogurl" value="<%=url %>" />
    <jsp:param name="ogimage" value="<%=ogimage %>" />
    <jsp:param name="ogdescription" value="<%=description%>" />
</jsp:include>
	
	<script type="text/javascript" src="/templates/showsite/js/info.js"></script>
	<script type='text/javascript' src='https://www.google.com/jsapi'></script>
	<script type="text/javascript">
		var url = "<%=UrlHelper.getServerUrl(request) %>/ajax/update-domain/<%=domain.getDomain() %>";
	</script>
	
		<div class="row-fluid">
		
			<div class="span8">
				<div class="row-fluid">
					<section class="siteinfo">
						<div class="block2">
							<div class="title-block">
								<h3><a href="/o/<%=domain.getDomain() %>" alt="<%=domain.getDomain() %>"><%=domain.getDomain() %></a></h3>
								<div class="divider-arrow"></div>
							</div>
							<div class="content-block">
								<div class="row-fluid">
									<div class="span10">
										<p>
											<% if (domain.getDescription().isEmpty()) { %>
		    	                				<%=domain.getDomain() %> has Alexa Rank <%=NumberHelper.numberFormat(domain.getAlexaRank()) %> and Google Page Rank is <%=domain.getGooglePageRank() %>
			                    			<% } else { %>
													<%=StringHelper.cutString(domain.getDescription(), 33)  %>...
			                    			<% } %>
			                    		</p>
			                    		<div class="adv">
			                    			<%=AdsSystem.getAds468x15() %>
			                    		</div>
									</div>
									<div class="span2">
										<img src="http://chart.apis.google.com/chart?chs=80x80&cht=qr&chld=|0&chl=http://<%=domain.getDomain() %>" alt="<%=domain.getDomain() %>" >
									</div>
								</div>
								
                    			<ul class="item-list">
                    				<li class="row-fluid">
                    					<div class="span4 title">Domain Name</div>
                    					<div class="span7 offset1"><%=domain.getDomain() %></div>
                    				</li>
                    				<li class="row-fluid">
                    					<div class="span4 title">Favicon</div>
                    					<div class="span7 offset1"><img src="https://s2.googleusercontent.com/s2/favicons?domain_url=http://<%=domain.getDomain()%>"></div>
                    				</li>
                    				<li class="row-fluid">
                    					<div class="span4 title">Google Page Rank</div>
                    					<div class="span7 offset1"><%=domain.getGooglePageRank() %></div>
                    				</li>
                    				<li class="row-fluid">
                    					<div class="span4 title">Alexa Rank</div>
                    					<div class="span7 offset1">#<%=domain.getAlexaRank() %></div>
                    				</li>
                    				<li class="row-fluid">
                    					<div class="span4 title">Page Size</div>
                    					<div class="span7 offset1"><%=domain.getPageSize() %></div>
                    				</li>
                    				<li class="row-fluid">
                    					<div class="span4 title">Ip Address</div>
                    					<div class="span7 offset1"><%=domain.getIpAddress() %></div>
                    				</li>
                    				<li class="row-fluid">
                    					<div class="span4 title">Heading</div>
                    					<div class="span7 offset1">
                    						<%
											Map<String, String> heading = new Gson().fromJson(domain.getHeading(), Map.class);
											%>
											H1: <%=heading.get("H1") %>, H2: <%=heading.get("H2") %>, H3: <%=heading.get("H3") %>, 
											H4: <%=heading.get("H4") %>, H5: <%=heading.get("H5") %>, H6: <%=heading.get("H6") %>
                    					</div>
                    				</li>
                    				<li class="row-fluid">
                    					<div class="span4 title">Images</div>
                    					<div class="span7 offset1">
                    						<%
			                                 	Map<String, String> images = new Gson().fromJson(domain.getImages(), Map.class);
			                                 	if (images.size() > 0) {
	                                     			int count = 0;
	                                     			for (Map.Entry<String, String> entry : images.entrySet()) { 
	                                     		%>
	                                     		    <%=count > 0? ", ": "" %><%=entry.getValue() %>&nbsp;<%=entry.getKey() %>
	                                     		<% 
	                                     				count ++;
	                                     			} 
	                                     		} 
	                                     		%>
                    					</div>
                    				</li>
                    			</ul>
							</div>
						</div>
					</section>
					
					<br />
					<div class="adv content-center">
			      		<%=AdsSystem.getAds468x60() %>
			      	</div>
					
					<section>
						<div class="f-info">
							<h3>Website Meta Analysis</h3>
							<div class="adv">
                    			<%=AdsSystem.getAds468x15() %>
                    		</div>
							<div class="content-block">
								<ul class="item-list">
                    				<li class="row-fluid">
                    					<div class="span3 title">Title</div>
                    					<div class="span8 offset1"><%=domain.getTitle() %></div>
                    				</li>
                    				<li class="row-fluid">
                    					<div class="span3 title">Meta Keyword</div>
                    					<div class="span8 offset1"><%=domain.getKeywords() %></div>
                    				</li>
                    				<li class="row-fluid">
                    					<div class="span3 title">Meta Description</div>
                    					<div class="span8 offset1"><%=domain.getDescription() %></div>
                    				</li>
                    			</ul>
							</div>
						</div>
					</section>
					
					<section>
						<div class="f-info">
							<h3>Technical Analysis</h3>
							<div class="view-more">
                    			<%=AdsSystem.getAds468x15() %>
                    		</div>
							<ul class="nav nav-tabs">
								<li class="active"><a href="#tab-tech" data-toggle="tab">Technical Info</a></li>
								<li><a href="#tab-header" data-toggle="tab">Http Header</a></li>
								<li><a href="#tab-whois" data-toggle="tab">Whois</a></li>
							</ul>	
							<div class="tab-content">
								<div class="tab-pane active" id="tab-tech">
									<div class="row-fluid">
										<div class="span12">
											<ul class="item-list">
												<li class="row-fluid">
													<div class="span4 title">Webserver</div>
													<div class="span8"><%=domain.getWebServer() %></div>
												</li>
												<li class="row-fluid">
													<div class="span4 title">Ip Address</div>
													<div class="span8"><%=domain.getIpAddress() %></div>
												</li>
												<li class="row-fluid">
													<div class="span4 title">Domain Age</div>
													<div class="span8"><%=domain.getAge() %></div>
												</li>
												<li class="row-fluid">
													<div class="span4 title">Javascript Library</div>
													<div class="span8">
														<%
														if (domain.getJavascriptLibrary() != null && !domain.getJavascriptLibrary().isEmpty()) {
							                               	List<String> libJs = new Gson().fromJson(domain.getJavascriptLibrary(), List.class);
							                               	for (int i = 0; i < libJs.size(); i++) { 
						                               	%>
							                               		<%=i > 0 ? ", " : "" %>
						                                        <%=libJs.get(i) %>
					                                    <% }
						                               	}%>
													</div>
												</li>
												<li class="row-fluid">
													<div class="span4 title">Language used</div>
													<div class="span8">
														HTML, CSS, Javascript
													</div>
												</li>
											</ul>
										</div>
									</div>
								</div>
								
								<div class="tab-pane" id="tab-header">
									<p>Hyper Text Transfer Protocol (HTTP) header show data header response from <%=domain.getDomain() %>.</p>
									<div class="row-fluid f-info">
										<div class="span12">
											<h4>HTML Analysis</h4>
											<%
											if (domain.getHeaders() != null && !domain.getHeaders().isEmpty()) {
				                               	Map<String, String> headers = new Gson().fromJson(domain.getHeaders(), Map.class);
				                               	if (headers.size() > 0) {
			                               	%>
			                                   <ul>
			                                   		<%
			                                   			int count = 0;
			                                   			for (Map.Entry<String, String> entry : headers.entrySet()) { 
			                                   		%>
			                                   		<li>
			                                   			<span><%=entry.getKey() %>:</span>
			                                   		   	<%=entry.getValue() %>
			                                   		</li>
			                                   		<% 
			                                   				count ++;
			                                   			} 
			                                   		%>
			                                   </ul>
			                                <% 	}
				                            } %>
										</div>
									</div>
								</div>
								
								<div class="tab-pane" id="tab-whois">
									<% if (domain.getWhois()!= null && !domain.getWhois().isEmpty()) { %>
						    		<%=domain.getWhois() %>
						    		<% } else { %>
						    		No data whois for <%=domain.getDomain() %>
						    		<% } %>
								</div>
							</div>
						</div>
					</section>
					
					<!-- DNS Analysis BEGIN -->
					<% if (!domain.getSoaRecord().isEmpty() || !domain.getDnsRecords().isEmpty()) { %>
					<section>
						<div class="f-info">
							<h3>DNS Analysis</h3>
							<ul class="nav nav-tabs">
								<li class="active"><a href="#tab-soa-record" data-toggle="tab">Soa Record</a></li>
								<li><a href="#tab-dns-record"  data-toggle="tab">Dns Record</a></li>
							</ul>							 
							<div class="tab-content">
								<div class="tab-pane active" id="tab-soa-record">
									<div class="soa-record">
										<%=domain.getSoaRecord() %>
									</div>
								</div>
								<div class="tab-pane" id="tab-dns-record">
									<%=domain.getDnsRecords() %>
								</div>
							</div>
						</div>
					</section>
					<% } %>
					<!-- DNS Analysis END -->
					
					
					<!-- IP Analysis BEGIN -->
					<% if (domain.getIpAddress() != null && !domain.getIpAddress().isEmpty() && ipAddress != null) { %>
					<section>
						<div class="f-info">
							<h3>IP <%=domain.getIpAddress() %> Analysis</h3>
							<ul class="nav nav-tabs">
								<li class="active"><a href="#tab-ip-location" data-toggle="tab">Ip Location</a></li>
						      	<li><a href="#tab-whois-ip" data-toggle="tab">Whois Ip</a></li>
						      	<li><a href="#tab-same-ip" data-toggle="tab">Site Same Ip</a></li>
							</ul>							 
							<div class="tab-content">
								<div class="tab-pane active" id="tab-ip-location">
						    		<div class="row-fluid">
										<div class="span6 ip-result">
											<ul class="item-list">
												<li class="row-fluid">
													<div class="span4 title">Country Code</div>
													<div class="span8"><%=ipAddress.getCountryCode() %></div>
												</li>
												<li class="row-fluid">
													<div class="span4 title">Country Code3</div>
													<div class="span8"><%=ipAddress.getCountryCode3() %></div>
												</li>
												<li class="row-fluid">
													<div class="span4 title">Country Name</div>
													<div class="span8"><%=ipAddress.getCountryName() %></div>
												</li>
												<li class="row-fluid">
													<div class="span4 title">City</div>
													<div class="span8"><%=ipAddress.getCity() %></div>
												</li>
												<li class="row-fluid">
													<div class="span4 title">Continent Code</div>
													<div class="span8"><%=ipAddress.getContinentCode() %></div>
												</li>
												<li class="row-fluid">
													<div class="span4 title">Latitude</div>
													<div class="span8"><%=ipAddress.getLatitude() %></div>
												</li>
												<li class="row-fluid">
													<div class="span4 title">Longitude</div>
													<div class="span8"><%=ipAddress.getLongitude() %></div>
												</li>
											</ul>
										</div>
										<div class="span6">
											<img src="http://maps.google.com/maps/api/staticmap?sensor=false&size=300x300&markers=size:mid|color:blue|label:1|<%=ipAddress.getLatitude() %>,<%=ipAddress.getLongitude() %>&markers=color:black|label:0|<%=ipAddress.getLatitude() %>,<%=ipAddress.getLongitude() %>">
										</div>
									</div>
						    	</div>
						    	
						    	<div class="tab-pane" id="tab-whois-ip">
						    		<div class="row-fluid f-info">
										<div class="span12">
											<ul>
												<li>
													<% if (ipAddress.getWhoisIp() != null && !ipAddress.getWhoisIp().isEmpty()) { %>
													<%=ipAddress.getWhoisIp() %>
													<% } else { %>
													No whois ip data for <%=ipAddress.getIp() %>
													<% } %>
												</li>
											</ul>
										</div>
									</div>
						    	</div>

								<div class="tab-pane" id="tab-same-ip">
						    		<div class="row-fluid">
										<div class="span12">
											<ul class="col4 clearfix">
											<%
											if (ipAddress != null && !ipAddress.getDomains().isEmpty()) {
                                       			List<String> ipAddressDomains = ipAddress.getDomains();
                                       			for (int i = 0; i < ipAddressDomains.size(); i++) { 
                                       				if (i >= 20) break;
                                      			%>
                                      			<li><a href="/www/<%=ipAddressDomains.get(i) %>"><%=ipAddressDomains.get(i) %></a></li>
                                      			<% 	}
                                       		}%>
										</div>
									</div>
						    	</div>
							</div>
						</div>
					</section>
					<% } %>
					<!-- IP Analysis END -->
					
					<!-- Link Analytics BEGIN -->
					<section class="visitor-analysis">
						<div class="f-info">
							<h3>In Page Analysis</h3>
							<div class="content-block">
								<ul class="nav nav-tabs">
							      	<li class="active"><a href="#tab-outbound-link" data-toggle="tab">Outbound Links</a></li>
							      	<% if (domain.getGoogleAdsenseId() != null && !domain.getGoogleAdsenseId().isEmpty()) { %>
							      	<li><a href="#tab-adsense-link" data-toggle="tab">Adsenses Link</a></li>
							      	<% } %>
							      	<% if (domain.getGoogleAnalyticId() != null && !domain.getGoogleAnalyticId().isEmpty()) { %>
							      	<li><a href="#tab-analytic-link" data-toggle="tab">Analytics Link</a></li>
							      	<% } %>
							  	</ul>
							  	<div class="tab-content">
							    	<div class="tab-pane active" id="tab-outbound-link">
							        	<p><%=domain.getDomain() %> has <%=domain.getOutlink().size() %> outlinks. The relation of external links to inner links influences the distribution of the site's weight in general. To grow the amount of indexed pages, there should be more inner links than external links.</p>
										<div class="row-fluid">
											<div class="span12">
												<h5>Outbound Links</h5>
												<ul class="col4 clearfix">
			                               			<%
			                               			String o = "";
			                               			List<String> outlinks = domain.getOutlink();
			                               			for (int i = 0; i < outlinks.size(); i++) { 
			                               				if (i >= 20) break;
			                               				o = UrlHelper.fomatDomains(outlinks.get(i));
			                               			%>
			                               			<li><a href="/www/<%=o %>"><%=o %></a></li>
			                               			<% } %>
			                                     </ul>
											</div>
										</div>
							    	</div>
							    	<% if (!domain.getGoogleAdsenseId().isEmpty()) { %>
							    	<div class="tab-pane" id="tab-adsense-link">
							        	<div class="row-fluid">
											<div class="span12">
												<h5>Google Adsense Id</h5>
												<p><%=domain.getGoogleAdsenseId() %></p>
											</div>
										</div>
										<% if (googleAdsense != null) { %>
										<div class="row-fluid">
											<div class="span12">
												<h5>Site Same Adsense</h5>
												<a href="/ad/<%=domain.getGoogleAdsenseId() %>" class="view-more">(View more)</a>
												<ul class="col4 clearfix">
													<%
	                                       			List<String> adsenseDomains = googleAdsense.getDomains();
	                                       			for (int i = 0; i < adsenseDomains.size(); i++) { 
	                                       				if (i >= 20) break;
	                                       			%>
	                                       			<li><a href="/www/<%=adsenseDomains.get(i) %>"><%=adsenseDomains.get(i) %></a></li>
	                                       			<% } %>
												</ul>
											</div>
										</div>
										<% } %>
							    	</div>
							    	<% } %>
							    	<% if (!domain.getGoogleAnalyticId().isEmpty()) { %>
							    	<div class="tab-pane" id="tab-analytic-link">
							        	<div class="row-fluid">
											<div class="span12">
												<h5>Google Adsense Id</h5>
												<p><%=domain.getGoogleAnalyticId() %></p>
											</div>
										</div>
										<% if (googleAnalytic != null) { %>
										<div class="row-fluid">
											<div class="span12">
												<h5>Site Same Analytic</h5>
												<a href="/an/<%=domain.getGoogleAnalyticId() %>" class="view-more">(View more)</a>
												<ul class="col4 clearfix">
													<%
	                                       			List<String> analyticDomains = googleAnalytic.getDomains();
	                                       			for (int i = 0; i < analyticDomains.size(); i++) {
	                                       				if (i >= 20) break;
	                                       			%>
	                                       			<li><a href="/www/<%=analyticDomains.get(i) %>"><%=analyticDomains.get(i) %></a></li>
	                                       			<% } %>
												</ul>
											</div>
										</div>
										<% } %>
							    	</div>
							    	<% } %>
							  	</div>
							</div>
						</div>
					</section>
					<!-- Link Analytics END -->
					
					<!-- Traffic Analysis BEGIN -->
					<section class="html-analysis">
						<div class="f-info">
							<h3>Traffic Analysis</h3>
							<div class="content-block">
								<div class="row-fluid">
									<div class="span12">
										<h5>Magestic Backlinks</h5>
										<img src="http://www.majesticseo.com/charts/backlinks-discovery-chart/<%=domain.getDomain() %>?w=677&h=155&IndexDataSource=F">
									</div>
								</div>
					        	<div class="row-fluid">
									<div class="span5">
										<h5>Daily Ranks</h5>
										<img src="http://traffic.alexa.com/graph?c=1&u=<%=domain.getDomain() %>&r=6m&y=t&z=3&h=200&w=280&b=FFFFFF">
									</div>
									<div class="span5 offset2">
										<h5>Rank Trend</h5>
										<img src="http://traffic.alexa.com/graph?&w=295&h=200&o=f&c=1&y=t&b=ffffff&r=4y&u=<%=domain.getDomain() %>" />
									</div>
								</div>
								<div class="row-fluid">
									<div class="span5">
										<h5>Visitor Trend</h5>
										<img src="http://grapher.compete.com/<%=domain.getDomain() %>_uv_310.png" />
									</div>
									<div class="span5 offset2">
										<h5>Bounce Trend</h5>
										<img src="http://traffic.alexa.com/graph?&w=295&h=200&o=f&c=1&y=b&b=ffffff&r=4y&u=<%=domain.getDomain() %>" />
									</div>
								</div>
							</div>
						</div>
					</section>
					<!-- Traffic Analysis END -->
					
					
					<!-- HTML Analytics BEGIN-->
					<section class="traffic-analysis">
						<div class="f-info">
							<h3>HTML Analysis</h3>
							<div class="content-block">
								<ul class="nav nav-tabs">
							      	<li class="active"><a href="#tab-html-analytics" data-toggle="tab">Validate Info</a></li>
							      	<% if (!domain.getStrValidError().isEmpty()) { %>
							      	<li><a href="#tab-html-error" data-toggle="tab">Html Message Error</a></li>
							      	<% } %>
							  	</ul>
							  	<div class="tab-content">
							    	<div class="tab-pane active" id="tab-html-analytics">
							    		<div class="row-fluid">
											<div class="span6">
												<h5>HTML validation</h5>
												<ul>
				                               		<li><%=domain.getValidError() %> Errors</li>
	                                                <li><%=domain.getValidWarnings() %> Warnings</li>
				                               	</ul>
				                               	
				                               	<h5>Ratio Text/Html</h5>
												<ul>
				                               		<li><%=domain.getRatioTextHtml() %></li>
				                               	</ul>
											</div>
											<div class="span6">
												<%-- <script type="text/javascript">
											      google.load("visualization", "1", {packages:["corechart"]});
											      google.setOnLoadCallback(drawChart);
											      function drawChart() {
											        var data = google.visualization.arrayToDataTable([
											          ['', 'Warning', 'Error'],
											          ['',  <%=domain.getValidWarnings() %>,      <%=domain.getValidError()%>],
											        ]);
											
											        var options = {
											          title: 'HTML Validate',
											          hAxis: {title: '', titleTextStyle: {color: 'red'}}
											        };
											
											        var chart = new google.visualization.ColumnChart(document.getElementById('chart_valid_div'));
											        chart.draw(data, options);
											      }
											    </script> --%>
											    <div id="chart_valid_div" style="width: 300px; height: 200px;"></div>
											</div>
										</div>
							    	</div>
							    	<% if (!domain.getStrValidError().isEmpty()) { %>
							    	<div class="tab-pane" id="tab-html-error">
							    		<div class="row-fluid">
							    			<div class="span12">
							    				<h5>Message Error</h5>
							    				<ul>
							    					<%=domain.getStrValidError().replace("src=\"images", "src=\"/images") %>
							    				</ul>
							    			</div>
							    		</div>
							    	</div>
							    	<% } %>
							    </div>
							</div>
						</div>
					</section>
					<!-- HTML Analytics END -->
					
					<!-- Visitor Analytic BEGIN-->
					<% if (!domain.getCountryVisitor().isEmpty()) { %>
					<section class="visitor-analysis">
						<div class="f-info">
							<h3>Visitor Analysis</h3>
							<div class="content-block">
								<div class="row-fluid f-info">
									<div class="span12">
										<h5>Daily Visitor</h5>
										<ul>
	                                        <li><%=NumberHelper.numberFormat(domain.getDailyVisitor()) %> visits</li>                                                
	                                    </ul>
									</div>
								</div>
								<%
	                           	Map<String, String> visitors = new Gson().fromJson(domain.getCountryVisitor(), Map.class);
	                            if (visitors != null && visitors.size() > 0) {
								%>
								<div class="row-fluid f-info">
									<div class="span12">
										<h5>Daily Visitor</h5>
										<ul>
	                                        <li>
	                                        	<script type='text/javascript'>
											     google.load('visualization', '1', {'packages': ['geochart']});
											     google.setOnLoadCallback(drawRegionsMap);
											
											      function drawRegionsMap() {
											        var data = google.visualization.arrayToDataTable([
											          ['Country', 'Percent (%)'],
											          <%
											          for (Map.Entry<String, String> entry : visitors.entrySet()) { 
												      %>
												      ['<%=entry.getKey() %>', <%=entry.getValue() %>],
												      <%	}
													    %>
											        ]);
											
											        var options = {numberFormat:'.#'};
											
											        var chart = new google.visualization.GeoChart(document.getElementById('chart_div'));
											        chart.draw(data, options);
											    };
											    </script>
	                                        </li>                                                
	                                    </ul>
	                                    <div id="chart_div" style="height: 500px;"></div>
									</div>
								</div>
								<% } %>
							</div>
						</div>
					</section>
					<% } %>
					<!-- Visitor Analytic END -->
					
				</div>
			</div>
			<jsp:include page="/templates/showsite/elements/right.jsp" />
		</div>
	
<jsp:include page="/templates/showsite/layouts/footer.jsp" />